﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<CondominioG1.Dominio.Residente>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Lista
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Lista</h2>

    <table>
        <tr>
            <th></th>
            <th>
                Dni
            </th>
            <th>
                Nombres
            </th>
            <th>
                Apellidos
            </th>
            <th>
                Edad
            </th>
            <th>
                Correo
            </th>
            <th>
                Clave
            </th>
            <th>
                Tipo
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) %> |
                <%: Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ })%> |
                <%: Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })%>
            </td>
            <td>
                <%: item.Dni %>
            </td>
            <td>
                <%: item.Nombres %>
            </td>
            <td>
                <%: item.Apellidos %>
            </td>
            <td>
                <%: item.Edad %>
            </td>
            <td>
                <%: item.Correo %>
            </td>
            <td>
                <%: item.Clave %>
            </td>
            <td>
                <%: item.Tipo %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Regresar", "Index") %>
    </p>

</asp:Content>

